package org.example.springbootproject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("exam_rule")
public class ExamRule {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;            // 规则名称

    @TableField(exist = false)     // 标记为不存在于数据库中
    private List<SubRule> subRules; // 子规则列表

    private Integer totalScore;     // 总分
    private LocalDateTime createTime;        // 创建时间
}